package com.csi.jf.crucible.common.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;


/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class JfTUser extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7325931306633385460L;
	// Fields    
	private Long jfid; 
	private String userName; 
	private String userPassword;
	private String projectId;
	private String email;
	private String role;
		
	//default constructor
    public JfTUser() {
    	super();
    }
    
    // Property accessors
	public Long getJfid() {
        return this.jfid;
    }
    
    public void setJfid(Long jfid) {
    	this.jfid = jfid;
    }
    
	public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
    	this.firePropertyChange("userName", this.userName, userName);
    	this.userName = userName;
    }
    
	public String getUserPassword() {
        return this.userPassword;
    }
    
    public void setUserPassword(String userPassword) {
    	this.firePropertyChange("userPassword", this.userPassword, userPassword);
    	this.userPassword = userPassword;
    }
    
   	public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.firePropertyChange("email", this.email, email);
        this.email = email;
    }

    public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.firePropertyChange("role", this.role, role);
        this.role = role;
    }

    public boolean validate(Object arg0) {
		//JfTUser jfTUser = (JfTUser)arg0;
		//Validation.required("jfTUser.userId",jfTUser.getUserId());
		return true;
	}
}